package com.ruoyi.yljf.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 章节内容对象 yljf_book_chapter
 * 
 * @author metaee
 * @date 2025-01-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "yljf_book_chapter")
public class BookChapter extends BasePlusEntity {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 章节数 */
    @Excel(name = "章节数")
    private Long num;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String name;

    /** 章节内容 */
    private String content;

    /** 上级id */
    private Long parentId;

    /** 是否免费（Y | N） */
    @Excel(name = "是否免费（Y | N）")
    private String free;

}
